using MicroMsg.Resource.@string;
using MicroMsg.UI.Util;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
namespace MicroMsg.UI.Page
{
	public class LongTxtShowPage : BasePage
	{
		private List<string> textList;
		public bool isSender;
		internal Grid LayoutRoot;
		internal TextBlock PageTitle;
		internal ListBox TxtList;
		private bool _contentLoaded;
		public LongTxtShowPage()
		{
			this.InitializeComponent();
		}
		protected override void OnPageIn(object[] object_0)
		{
			if (object_0 != null && Enumerable.Count<object>(object_0) == 2)
			{
				this.PageTitle.set_Text(strings.Chat_LongTxt_Title);
				this.textList = (object_0[0] as List<string>);
				this.isSender = (bool)object_0[1];
				this.TxtList.set_ItemsSource(new ObservableCollection<string>(this.textList));
			}
		}
		[DebuggerNonUserCode]
		public void InitializeComponent()
		{
			if (this._contentLoaded)
			{
				return;
			}
			this._contentLoaded = true;
			Application.LoadComponent(this, new Uri("/MicroMsg;component/Source/UI/Chat/TooLongTxt/LongTxtShowPage.xaml", 2));
			this.LayoutRoot = (Grid)base.FindName("LayoutRoot");
			this.PageTitle = (TextBlock)base.FindName("PageTitle");
			this.TxtList = (ListBox)base.FindName("TxtList");
		}
	}
}
